# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Christian Kampka <christian@kampka.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=po4a
pkgver=0.71
pkgrel=0
pkgdesc="Tools for helping translation of documentation"
url="https://po4a.org"
arch="noarch"
license="GPL-2.0-or-later"
options="!check" # test_requires missing: SGMLS and Unicode::GCString
depends="gettext perl perl-pod-parser perl-syntax-keyword-try"
makedepends="diffutils docbook-xsl perl-module-build"
subpackages="$pkgname-doc $pkgname-lang"
source="https://github.com/mquinson/po4a/releases/download/v$pkgver/po4a-$pkgver.tar.gz"

build() {
	perl Build.PL \
		--installdirs=vendor \
		--create_packlist=0
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
}

sha512sums="
67ba925433d95ebd6675ce2e58b2664a07a00016ca4b5029845e485dfad1804737a00935e2da162e2488e4c21b947e7fa32b40ac3d9b28d4729d8f93c3f2040b  po4a-0.71.tar.gz
"
